﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace SSP
{
    class SSPLevelDefinition
    {
        public int length;
        public ArrayList backgroundElements;
        public ArrayList spawnElements;
        public ArrayList textureElements;
        
        public SSPLevelDefinition()
        {
            backgroundElements = new ArrayList();
            spawnElements = new ArrayList();
            textureElements = new ArrayList();
        }

        public void addBackgroundElement(SSPBackgroundElement be)
        {
            backgroundElements.Add(be);
        }

        public void addSpawnElement(string name, int x, int y)
        {
            spawnElements.Add(new SSPSpawnElement(new Vector2(x,y), name));
        }

        public void addTextureElement(string tag, string path)
        {
            textureElements.Add(new SSPSprite(tag, path));
        }
    }
}
